@use "blog.variable.module.scss" as blog;

.blog-category-detail {
  padding: 10vh 2vw;

  display: flex;
  flex-direction: column;
  gap: 3vh;

  .name {
    font-weight: bold;
    text-align: center;
    font-size: blog.$large-font-size;
  }

  .category-detail-list {
    height: 100%;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 2vh;

    .item {
      display: grid;
      grid-template-columns: 40px 200px 1fr;
      justify-items: center;
      align-items: center;
      gap: 10px;
      cursor: pointer;
      color: blog.$normal-text-color;

      padding-bottom: 0.5vh;
      border: none;
      border-bottom: 1px dashed blog.$gray-text-color;

      .number, .date {
        text-align: center;
      }

      .title {
        justify-self: start;
      }

      span {
        padding: 0.2vw;
      }
    }

    .item:hover {
      color: var(--color-text);
    }
  }
}

@media screen and (max-width: 768px) {
  .blog-category-detail {
    padding: 20px 10px;
  }
}
